 #define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include"HeapSort.h"
int main()
{
	int arr[20] = { 1,25,2,4,14,5,3,11,3,3,2,1,22,33,44,78,3,44,232,1 };
	HeapSort hp(arr, 20);
	hp.BuildMaxHeap();
	//hp.BuildMinHeap();
	for (int i = 0; i < 20; i++)
	{
		cout << arr[i] << " ";
	}
	cout << endl;
	hp.Sort();
	for (int i = 0; i < 20; i++)
	{
		cout << arr[i] << " ";
	}
	return 0;
}